#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
#include<sys/time.h>
#include<math.h>
#include"./rand.h"


#define VERSION "1.4"
#define MAX_CONFIG_LINES 16
#define MAX_CONFIG_SIZE 2048
#define CONFIG_FILE "cmz.conf"
#define PROGNAME "cmz"

int count;

// Store data from configuration file

struct {
	float redshift;
	float a;
	float b;
	float min_mass;
	float max_mass;
	float sigma_logc;
	float delta;
} config[MAX_CONFIG_LINES];

void read_config(char* cmz_conf);
void help (void);
float c(float m, float redshift, long int start);
float p_logc(float logc, float mean_logc, float sigma_logc);
void usage(void);
void help(void);


